/* 
Comment from Meena

I don't think that the list should contain actual Account object
since that is inefficient.  I think it's enough to store account
nums and type.  I plan on changing this later but I'll leave it
just for the sake of the example that I've set up.

*/

package chase.myrewards.beans;

import java.io.Serializable;
import java.util.ArrayList;


/**
 * Bean class that holds a list of accounts
 * 
 * @author Meena Abdou
 * @date April 21, 2013
 */
public class AccountList implements Serializable {
	
	/**
	 * This number must be unique for every class. And it can never change.
	 * You have to generate it automatically by clicking on the class name and
	 * then hitting Ctrl+1.  Then click on Add generated serial version ID. Then
	 * copy these comments on top of the generated id.
	 * 
	 * @serial serialVersionUID
	 */
	private static final long serialVersionUID = 6847144802047362441L;
	
	private ArrayList<Account> accountList;
	
	public AccountList(){
		accountList = new ArrayList<Account>();
	}

	public ArrayList<Account> getAccountList() {
		return accountList;
	}

	public void setAccountList(ArrayList<Account> accountList) {
		this.accountList = accountList;
	}
	
	public void insertAccount(Account acc){
		accountList.add(acc);
	}
}
